<!DOCTYPE html>
<html>

<head>
    <title>搜索"{$keyword|default=''}" - {$site_info.site_seo_title|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head" />
    <style>
        .ranking li {
            line-height: 30px;
        }
        
        .list-box {
            height: auto;
            overflow: hidden;
            border-bottom: 1px dashed #e8e9eb;
            display: block;
            position: relative;
        }
        
        .headtitle {
            font-size: 20px;
            margin-top: 10px;
            margin-bottom: 0px;
            padding-bottom: 10px;
        }
        
        .list-box h2>a {
            color: #0c6ec5;
            font-size: 16px;
        }
        
        .list-box h2>a:hover {
            color: #2780E3;
        }
        
        .list-box p {
            color: #8f8f8f;
            font-size: 16px;
        }
        
        .btn_more {
            position: absolute;
            top: 10px;
            right: 0px;
            color: #0c6ec5;
            font-size: 14px;
        }
        
        .list-box h2 {
            margin-top: 10px;
        }
    </style>
    <hook name="before_head_end" />
</head>

<body class="body-white">
    <include file="public@head_nav" />
    <div class="m_container">
        <div class="row">
            <div class="col-md-3">
                <div class="left_box">
                    <include file="public@left_menu" />
                </div>
            </div>
            <div class="col-md-9">
                <div class="right_box">
                    <div class="list_header">
                        <ol class="breadcrumb">
                            <li class="blue_bot"><a href="#">你现在的所在位置</a></li>
                            <li>
                                <a href="__ROOT__/">首页</a>
                            </li>
                            <portal:breadcrumb cid="$category.id" self="true">
                                <li>
                                    <a href="{:url('portal/List/index',['id'=>$vo['id']])}">{$vo.name}</a>
                                </li>
                            </portal:breadcrumb>
                        </ol>
                    </div>
                    <div class="headtitle">"{$keyword}" 搜索结果</div>
                    <php>
                        $where=[ 'post.create_time'=>['egt',0], 'post.post_title'=>['like',"%$keyword%"] ];
                    </php>

                    <portal:articles item="vo" where="$where" order="post.create_time DESC" page="5">
                        <div class="list-box">
                            <h2><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">{$vo.post_title}</a></h2>
                            <p>{$vo.post_excerpt}</p>
                            <a class="btn_more" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">更多>></a>
                        </div>
                    </portal:articles>
                    <div class="pagination">
                        <page/>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
    <hook name="before_body_end" />
</body>

</html>